package com.kaka.mapper;

import com.kaka.javabean.User;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    void insert();

    void insertUser(User user);

    void insertMap(Map<String, String> users);

    /*--------------------------------------*/
    void delete();

    void deleteById(int id);

    void deleteByIdAndTel(int id, String tel);

    void deleteByList(List<Integer> list);

    void deleteByMap(Map<String, String> map);

    /*--------------------------------------*/
    void update();

    void updateById(int id);

    void updateByIdAndTel(int id, String tel);

    void updateUsernameAndPasswordById(String username, String password, int id);

    void updateTelByList(List<String> list);

    void updateTelByMap(Map<String, String> map);
}
